* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f7fa;
  font-family: "Microsoft YaHei", sans-serif;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.desktop-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.user-info__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f0f2f5;
}

.user-info__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-info__name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.user-info__wechat {
  font-size: 14px;
  color: #666;
}

.user-info__openid {
  font-size: 14px;
  color: #999;
}

.info-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #f0f7ff;
  border-radius: 8px;
  font-size: 14px;
  color: #409eff;
}

.binding-form {
  margin-top: 10px;
}

.form-item {
  margin-bottom: 20px;
}

.role-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 120px;
  border: 2px solid #e6e6e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-item i {
  font-size: 24px;
  color: #666;
  margin-bottom: 8px;
}

.role-item__text {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.role-item.active {
  border-color: #409eff;
  background-color: #f0f7ff;
}

.role-item.active i,
.role-item.active .role-item__text {
  color: #409eff;
}

.role-item.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.verify-code {
  display: flex;
  gap: 12px;
}

.verify-code .el-input {
  flex: 1;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.submit-btn {
  width: 200px;
  height: 44px;
  font-size: 16px;
}

.custom-round-dialog .el-dialog__header {
  text-align: center;
}

.auth-dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.auth-icon i {
  font-size: 48px;
  color: #07c160;
}

.auth-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.auth-desc {
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.5;
}

.dialog-footer {
  display: flex;
  justify-content: center;
  padding: 10px 0 20px;
}

.auth-btn {
  width: 160px;
  height: 40px;
}

/* 渐入动画 */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}